@extends('layouts.app')
@section('content')
    <span class="btn btn-warning pull-right" lay-submit lay-filter="login" id="span1"><a href="{{url('guard_index')}}">列表</a></span>
    <span class="btn btn-warning pull-right" lay-submit lay-filter="login" id="span2">添加</span>
    <div id="d2">
        <form action="{{url('guard_update')}}" method="post">
            {{csrf_field()}}
            <input type="hidden" name="id" value="{{$info->id}}">
            <label class="login-title" for="username">类型</label>
            <div class="layui-form-item">
                <div class="layui-input-inline login-inline">
                    <span name="guard_type">@if($info->guard_type=='1')普通守护@else尊贵守护@endif</span>
                </div>
            </div>
            <label class="login-title" for="username">序号
            </label>
            <div class="layui-form-item">
                <div class="layui-input-inline login-inline">
                    <input type="text" name="guard_num" lay-verify="required" id="c_time" autocomplete="off" class="layui-input" value="{{$info->guard_num}}">
                </div>
            </div>
            <label class="login-title" for="username">名称</label>
            <div class="layui-form-item">
                <div class="layui-input-inline login-inline">
                    <input type="text" name="guard_name" lay-verify="required" id="c_time" autocomplete="off" class="layui-input" value="{{$info->guard_name}}">
                </div>
            </div>
            <label class="login-title" for="username">价格</label>
            <div class="layui-form-item">
                <div class="layui-input-inline login-inline">
                    <input type="text" name="guard_much" lay-verify="required" id="c_time" autocomplete="off" class="layui-input" value="{{$info->guard_much}}">
                </div>
            </div>
            <label class="login-title" for="username">时长</label>
            <div class="layui-form-item">
                <div class="layui-input-inline login-inline">
                    <input type="text" name="guard_time" lay-verify="required" id="c_time" autocomplete="off" class="layui-input" value="{{$info->guard_time}}">
                </div>
            </div>
            <input type="submit" value="添加" class="btn btn-warning pull-right" lay-submit lay-filter="login">
            <span class="btn btn-warning pull-right" lay-submit lay-filter="login"><a href="{{url('mount_show')}}">返回</a></span>
        </form>
    </div>
@endsection